<%@ Page Language="C#" MasterPageFile="gallery.master" AutoEventWireup="true" CodeFile="ViewPhotoAlbum.aspx.cs"
  Inherits="admin_viewphotoalbums" Title="Photo Album" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphAdmin" runat="Server">
  <h1>
    Photos
  </h1>
  <asp:DataList ID="AlbumContent" runat="Server" CssClass="albumphotos" RepeatColumns="1"
    RepeatDirection="Horizontal" EnableViewState="False" AlternatingItemStyle-BorderColor="lightgray">
    <HeaderTemplate>
      <table width="100%">
    </HeaderTemplate>
    <ItemTemplate>
      <tr>
        <td>
          <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/EditPhoto.aspx?PhotoId=" %><%# DataBinder.Eval(Container.DataItem, "Id") %>">
            <img src="<%# ((BlogEngine.Core.Photo) Container.DataItem).GetSizedPhotoURL(150) %>"
              alt="<%# DataBinder.Eval(Container.DataItem, "Title")%>" />
          </a>
        </td>
        <td>
          <b>Title:</b>
          <%# DataBinder.Eval(Container.DataItem, "Title")%>
          <br />
          <br />
          <div style="width: 200px;">
            <div style="float: right;">
              <img src="icons/picture_edit.png" /><a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/EditPhoto.aspx?PhotoId=" %><%# DataBinder.Eval(Container.DataItem, "Id") %>">
                Edit Photo</a>
              <br />
              <img src="icons/picture_delete.png" /><a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/DeletePhoto.aspx?PhotoId=" %><%# DataBinder.Eval(Container.DataItem, "Id") %>">
                Delete Photo</a>
            </div>
            <div style="float: left;">
              <img src="icons/resultset_top.png" align="absmiddle" />
              <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/ViewPhotoAlbum.aspx?Action=Top&PhotoId="%><%# DataBinder.Eval(Container.DataItem, "Id")%>">
                Move Top</a><br />
              <img src="icons/resultset_up.png" align="absmiddle" />
              <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/ViewPhotoAlbum.aspx?Action=Up&PhotoId="%><%# DataBinder.Eval(Container.DataItem, "Id")%>">
                Move Up</a><br />
              <img src="icons/resultset_down.png" align="absmiddle" />
              <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/ViewPhotoAlbum.aspx?Action=Down&PhotoId="%><%# DataBinder.Eval(Container.DataItem, "Id")%>">
                Move Down</a><br />
              <img src="icons/resultset_buttom.png" align="absmiddle" />
              <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "admin/gallery/ViewPhotoAlbum.aspx?Action=Bottom&PhotoId="%><%# DataBinder.Eval(Container.DataItem, "Id")%>">
                Move Bottom</a>
            </div>
          </div>
        </td>
      </tr>
    </ItemTemplate>
    <FooterTemplate>
      </table>
    </FooterTemplate>
  </asp:DataList>
</asp:Content>
